import java.lang.reflect.Array;
import java.util.ArrayList;

/**
 * This class will implement a simple hash. The purpose is to learn a lot more about hashes than I currently know.
 * @author	Titrate
 *
 */
public class MyHash<K, V>{
	private static boolean SUCCESS = true;
	private static boolean FAIL = false;
	private static int HASH_SIZE = 10000;
	
	private V[] map;
	
	
	
	
	//	     array=(T[])Array.newInstance(clazz,capacity);

	public MyHash(Class<V> clazz) {
		map=(V[]) Array.newInstance(clazz,HASH_SIZE);
	}

	boolean put(K key, V value){
		int hashInt = 0;
		
		hashInt = turnKeyIntoIndex(key);
		
		return SUCCESS;
	}

	private int turnKeyIntoIndex(K key) {
		// TODO Auto-generated method stub
		return 0;
	}
}
